#pragma once
// KeySettingDlg dialog
#include "afxdialogex.h"
#include "StructureAndConst.h"
class KeySettingDlg : public CDialogEx
{
	DECLARE_DYNAMIC(KeySettingDlg)

public:
	KeySettingDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~KeySettingDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_KEY };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedOk();
	afx_msg void OnButton( UINT nID );
	afx_msg void OnBnClickedCancel();

	DECLARE_MESSAGE_MAP()

private:
	CString DXKeyCode2Name(short sKey);
	CWnd *m_pBtnCurrent;
	CString m_csKeyName[256];
	short m_VirtualKey2DXKey[256];
	short m_mapOp2Key[eAllKey];

};
